package com.zhouxiaoge.命令模式;

/**
 * @author 周小哥 gqzmy@163.com 2023/2/27 14:19
 */

public class Stock {
    private String name = "abc";
    private int quantity = 10;

    public void buy() {
        System.out.println("Stock [ name: " + name + ", Quantity: " + quantity + " ] bought");
    }


    public void sell() {
        System.out.println("Stock [ name: " + name + ", Quantity: " + quantity + " ] sold");
    }
}
